﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Crawler.DomainServices.DataServices;
using Crawler.DomainServices.Download;
using Crawler.DomainServices.Processors;

namespace ConsoleApplication1
{
	class CrawlerConfiguration : IDataServicesConfiguration, IDownloadConfiguration, IProcessorsConfiguration
	{
		public string SqlServerMoviesConnStr { get
		{
			return @"Data Source=FAMILY-PC\SQLEXPRESS;Initial Catalog=Movies;Integrated Security=True;Pooling=False";
		} }

		public string SqlServerCrawlConnStr { get
		{
			return @"Data Source=FAMILY-PC\SQLEXPRESS;Initial Catalog=CrawlDb;Integrated Security=True;Pooling=False";
		} }

		public string SqliteMoviesConnStr { get
		{
			return string.Format(@"Data Source={0}Movies.db;Version=3;",DownloadsFolder);
		} }

		public string SqliteCrawlConnStr { get
		{
			return string.Format(@"Data Source={0}CrawlDb.db;Version=3;",DownloadsFolder);
		} }

		public bool CreateDb { get { return false; } }


		public string DownloadsFolder { get { return @"E:\CrawlerDownloads\"; } }
		public int MaxThreads { get { return 100; } }
	}
}
